package ru.ifmo.cppsc.translator;

import java.util.HashMap;

/**
 * Created by IntelliJ IDEA.
 * User: orybak
 * Date: 30.06.2008
 * Time: 3:35:46
 * To change this template use File | Settings | File Templates.
 */
public class SymbolTable {
    private HashMap<String, TableRecord> recordMap;

    public SymbolTable() {
        recordMap = new HashMap<String, TableRecord>();
    }

    public void addRecord(TableRecord rec) {
        recordMap.put(rec.getId(), rec);
    }
    public TableRecord getRecord(String idValue) {
        return recordMap.get(idValue);
    }
}
